<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.boxin.ims.modules.wechat.entity.Product" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN" manifest="/misc/wei_cache_new.manifest">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<title>订单列表</title>
<link rel="stylesheet" type="text/css" href="${ctxStatic }/site/themes/FangChanMuBan/list.css" />
<script type="text/javascript">
function onBridgeReady(){
	 WeixinJSBridge.call('hideOptionMenu');
	}

	if (typeof WeixinJSBridge == "undefined"){
	    if( document.addEventListener ){
	        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	    }else if (document.attachEvent){
	        document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
	        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
	    }
	}else{
	    onBridgeReady();
	}
</script>
</head>
<body>
<style>
.ddlist{border-top:2px solid #f1f1f1;margin-top:15px;}
.ddlist2{border-bottom:1px solid #f1f1f1;height:40px;line-height:40px;}
.ddlist2 em{color:#666;font-size:14px;float:left; font-style:normal;padding-left:15px;}
.ddlist2 span{float:right;color:#ff5366;font-size:14px;font-weight:bold;padding-right:10px;}
.daizhi{background:#eaedf4;height:50px; clear:both}
.daizhi em{float:left;font-weight:bold;font-style:normal;line-height:50px;font-size:14px;padding-left:15px;color:#666;}
.daizhi a{float:right;color:#fff; background:#ff5366; text-align:center;border-radius:5px;height:30px;margin-top:10px;padding:0px 10px;margin-right:15px;line-height:30px;font-size:14px;}
</style>
 <c:forEach items="${goodsOrderList }" var="goodsOrder">
  <div class="ddlist">
   <div class="ddlist2">
    <em>下单时间:<fmt:formatDate value="${goodsOrder.createTime }" type="date"/></em><span class="price">￥4000</span>
   </div>
    <div class="gwlist3">
     <ul>
       <li><a href="${ctxFront }/site/shopping/viewProduct/${goodsOrder.product.id}?uid=${uid}&wechatId=${wechatId}"><img src="${ctxUser }/product/${goodsOrder.product.indexPic}" style="height:122px;width:122px;"  ></a>
        <div class="gwbt">
         <h1>${goodsOrder.name }</h1>
         <span class="price">￥${goodsOrder.price }</span><br/>
         <span class="num">数量${goodsOrder.productNumber }个</span>
        </div>
       </li>
     </ul>
   </div>
   <c:if test="${goodsOrder.status==0 }">
   <div class="daizhi"><em>待支付</em><a href="${ctxFront }/site/shopping/createPay?uid=${uid }&wechatId=${wechatId }&productId=${goodsOrder.product.id }&productNumber=${goodsOrder.productNumber }">去支付</a></div>
   </c:if>
   <c:if test="${goodsOrder.status==2 }">
   <div class="daizhi"><em>待收货</em><a href="${ctxFront }/site/shopping/receipt?uid=${uid}&wechatId=${wechatId}&orderId=${goodsOrder.id}">确认收货</a></div>
   </c:if>
   <c:if test="${goodsOrder.status==3 }">
   <div class="daizhi"><em>交易完成 </em></div>
   </c:if>
  </div>
  </c:forEach>
  
  <jsp:include page="./footer.jsp"></jsp:include>
</body>
</html>

